package com.diandi.signature.database;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author liubaiyuan
 */
public class DynamicDataSource extends AbstractRoutingDataSource implements InitializingBean {

	@Override
	protected Object determineCurrentLookupKey() {
		return DynamicDataSourceHolder.getDataSouce();
	}
}
